﻿using System;
using System.Collections.Generic;
using System.Globalization;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Data;

namespace AncheStart.Converter
{
    public class SelectedCheckConverter : IValueConverter
    {
        public object Convert(object value, Type targetType, object parameter, CultureInfo culture)
        {
            bool isselected = (bool)value;
            return isselected == true ? "14" : "13";
        }

        public object ConvertBack(object value, Type targetType, object parameter, CultureInfo culture)
        {
            bool res = (bool)value;
            if (res)
            {
                return System.Convert.ToInt32(res);
            }
            return -1;
        }
    }
}